package com.lovol.gis.demo.common;

public enum ResultEnum {
    SUCCESS(200, "SUCCESS"),
    TOKEN_PAST(301, "会话已过期，请重新登录"),
    TOKEN_ERROR(302, "TOKEN异常"),
    LOGIN_ERROR(303, "登录异常"),
    COURSE_SAVE_FAIL(403, "添加失败"),
    COURSE_UPDATE_FAIL(404, "更新失败"),
    COURSE_DELETE_FAIL(405, "删除失败"),
    LECTURER_REQUISITION_REGISTERED(501, "用户或密码错误"),
    LECTURER_REQUISITION_WAIT(502, "该用户没有权限"),
    FAILURE(3000, "出错了，请联系管理员！"),
    SYSTEM_EXCEPTION(5000, "系统异常了！"),
    PARAMETER_ERROR(3001, "参数异常"),
    BUSINESS_ERROR(4001, "业务处理异常");

    private Integer code;
    private String msg;

    public Integer getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }

    private ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
